flow chart of sum of a series